package edu.guet.Factory.AbstractFactory.PizzaStroe;

import edu.guet.Factory.AbstractFactory.Pizza.*;
import edu.guet.Factory.PizzaType;


/**
 * Created by Caesar on 2017/5/6.
 */
public abstract class PizzaStroe {

    public PizzaStroe() {
    }

    public Pizza orderPizza(PizzaType type) {
        Pizza pizza = creatPizza(type);
        pizza.prepare();
        pizza.bake();
        pizza.cut();
        pizza.box();
        return pizza;
    }

    public abstract Pizza creatPizza(PizzaType type);

}
